package com.ticket.sass.admin.dto.input.user;


import com.ticket.sass.admin.dto.input.PageInput;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

/**
 * @author ywb
 * @date 2021-11-16 14:19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户中奖记录列表输入DTO", description = "按照要求填写")
public class UserPrizeListInput extends PageInput {
    @ApiModelProperty("姓名")
    private String usersName;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("奖品名称")
    private String prizeName;

    @ApiModelProperty("奖品类型 0 所有 1 现金红包 2 优惠劵")
    @Range(max = 2, min = 0, message = "大小范围应该在0-2内。")
    private Integer prizeType;

    @ApiModelProperty("赞助商 0 代表所有")
    private Integer sponsorId;
}
